package com.omar.labs.tamtamy;

import java.util.ArrayList;

/**
 * Handles the response to URI calls for <a href="https://tamtamy.reply.it/wiki/API#Tag_detail">Tag Detail</a>. 
 *  
 * @see ArrayList 
 * @author Omar "0m4r" Adobati 
 * @version %I%, %G% 
 * 
 */
public class TagDetail {
	protected String tag;
	protected long count;
	protected ArrayList contentsid;
	
	public TagDetail(){
		this.tag = null;
		this.count = 0;
		this.contentsid = new ArrayList();
	}
	
	public TagDetail(String tag, long count, ArrayList contentsid){
		this.tag = tag;
		this.count = count;
		this.contentsid = contentsid;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public ArrayList getContentsid() {
		return contentsid;
	}

	public void setContentsid(ArrayList contentsid) {
		this.contentsid = contentsid;
	}
	
	public void print(){
		System.out.println("== CONTENT LIST DETAIL ==");
		System.out.println("tag: " + tag);
		System.out.println("count: " + count);
		for(int i=0; i<contentsid.size(); i++){
			System.out.println("contentID: " + contentsid.get(i));
		}
		
	}
	
	
}
